Page({
  data: {
    items: [{
      title: "步骤一",
      desc: "2020-04-01"
    }, {
      title: "步骤二",
      desc: "2020-04-01"
    }, {
      title: "步骤三",
      desc: "2020-04-01"
    }, {
      title: "步骤四",
      desc: "2020-04-01"
    }],
    items2: [{
      title: "",
      desc: "code",
      name:"",
      icon:"/static/images/tabbar/code_gray.png",
      activeIcon:"/static/images/tabbar/code_active.png"
    }, {
      title: "",
      desc: "extend",
      name:"",
      icon:"/static/images/tabbar/extend_gray.png",
      activeIcon:"/static/images/tabbar/extend_active.png"
    }, {
      title: "",
      desc: "my",
      name:"",
      icon:"/static/images/tabbar/thor_gray.png",
      activeIcon:"/static/images/tabbar/thor_active.png"
    }, {
      title: "",
      desc: "thor",
      name:"",
      icon:"/static/images/tabbar/thor_gray.png",
      activeIcon:"/static/images/tabbar/thor_active.png"
    }],
    activeSteps: 1
  },
  change() {
    let steps = this.data.activeSteps + 1
    this.setData({
      activeSteps: steps > 3 ? 0 : steps
    })
  },
  handleClick(e){
    console.log(`当前点击步骤索引：${e.detail.index}`)
  }
})